//
//  YXImageCache+internal.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import "YXImageCache.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, YXImageCacheType) {
    YXImageCacheTypeOrigin,
    YXImageCacheTypeCompressed
};

@interface YXImageCache ()

- (void)yx_setImage:(UIImage *)image type:(YXImageCacheType)type forKey:(NSString *)key resident:(BOOL)resident;

- (nullable UIImage *)yx_imageForKey:(NSString *)key type:(YXImageCacheType)type;

- (void)yx_removeForKey:(NSString *)key;

- (void)yx_removeResidentForKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
